﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012F1 RID: 4849
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncRogueCommonPendingActionScNotify : IMessage<SyncRogueCommonPendingActionScNotify>, IMessage, IEquatable<SyncRogueCommonPendingActionScNotify>, IDeepCloneable<SyncRogueCommonPendingActionScNotify>, IBufferMessage
	{
		// Token: 0x17003D3C RID: 15676
		// (get) Token: 0x0600D921 RID: 55585 RVA: 0x00246323 File Offset: 0x00244523
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncRogueCommonPendingActionScNotify> Parser
		{
			get
			{
				return SyncRogueCommonPendingActionScNotify._parser;
			}
		}

		// Token: 0x17003D3D RID: 15677
		// (get) Token: 0x0600D922 RID: 55586 RVA: 0x0024632A File Offset: 0x0024452A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncRogueCommonPendingActionScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003D3E RID: 15678
		// (get) Token: 0x0600D923 RID: 55587 RVA: 0x0024633C File Offset: 0x0024453C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncRogueCommonPendingActionScNotify.Descriptor;
			}
		}

		// Token: 0x0600D924 RID: 55588 RVA: 0x00246343 File Offset: 0x00244543
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonPendingActionScNotify()
		{
		}

		// Token: 0x0600D925 RID: 55589 RVA: 0x0024634C File Offset: 0x0024454C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonPendingActionScNotify(SyncRogueCommonPendingActionScNotify other) : this()
		{
			this.rogueSubMode_ = other.rogueSubMode_;
			this.action_ = ((other.action_ != null) ? other.action_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D926 RID: 55590 RVA: 0x00246398 File Offset: 0x00244598
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncRogueCommonPendingActionScNotify Clone()
		{
			return new SyncRogueCommonPendingActionScNotify(this);
		}

		// Token: 0x17003D3F RID: 15679
		// (get) Token: 0x0600D927 RID: 55591 RVA: 0x002463A0 File Offset: 0x002445A0
		// (set) Token: 0x0600D928 RID: 55592 RVA: 0x002463A8 File Offset: 0x002445A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueSubMode
		{
			get
			{
				return this.rogueSubMode_;
			}
			set
			{
				this.rogueSubMode_ = value;
			}
		}

		// Token: 0x17003D40 RID: 15680
		// (get) Token: 0x0600D929 RID: 55593 RVA: 0x002463B1 File Offset: 0x002445B1
		// (set) Token: 0x0600D92A RID: 55594 RVA: 0x002463B9 File Offset: 0x002445B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPendingAction Action
		{
			get
			{
				return this.action_;
			}
			set
			{
				this.action_ = value;
			}
		}

		// Token: 0x0600D92B RID: 55595 RVA: 0x002463C2 File Offset: 0x002445C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SyncRogueCommonPendingActionScNotify);
		}

		// Token: 0x0600D92C RID: 55596 RVA: 0x002463D0 File Offset: 0x002445D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncRogueCommonPendingActionScNotify other)
		{
			return other != null && (other == this || (this.RogueSubMode == other.RogueSubMode && object.Equals(this.Action, other.Action) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D92D RID: 55597 RVA: 0x00246420 File Offset: 0x00244620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RogueSubMode != 0U)
			{
				num ^= this.RogueSubMode.GetHashCode();
			}
			if (this.action_ != null)
			{
				num ^= this.Action.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D92E RID: 55598 RVA: 0x00246475 File Offset: 0x00244675
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D92F RID: 55599 RVA: 0x0024647D File Offset: 0x0024467D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D930 RID: 55600 RVA: 0x00246488 File Offset: 0x00244688
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.action_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.Action);
			}
			if (this.RogueSubMode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.RogueSubMode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D931 RID: 55601 RVA: 0x002464E4 File Offset: 0x002446E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RogueSubMode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueSubMode);
			}
			if (this.action_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Action);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D932 RID: 55602 RVA: 0x0024653C File Offset: 0x0024473C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncRogueCommonPendingActionScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RogueSubMode != 0U)
			{
				this.RogueSubMode = other.RogueSubMode;
			}
			if (other.action_ != null)
			{
				if (this.action_ == null)
				{
					this.Action = new RogueCommonPendingAction();
				}
				this.Action.MergeFrom(other.Action);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D933 RID: 55603 RVA: 0x002465A4 File Offset: 0x002447A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D934 RID: 55604 RVA: 0x002465B0 File Offset: 0x002447B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RogueSubMode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.action_ == null)
					{
						this.Action = new RogueCommonPendingAction();
					}
					input.ReadMessage(this.Action);
				}
			}
		}

		// Token: 0x0400566D RID: 22125
		private static readonly MessageParser<SyncRogueCommonPendingActionScNotify> _parser = new MessageParser<SyncRogueCommonPendingActionScNotify>(() => new SyncRogueCommonPendingActionScNotify());

		// Token: 0x0400566E RID: 22126
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400566F RID: 22127
		public const int RogueSubModeFieldNumber = 13;

		// Token: 0x04005670 RID: 22128
		private uint rogueSubMode_;

		// Token: 0x04005671 RID: 22129
		public const int ActionFieldNumber = 3;

		// Token: 0x04005672 RID: 22130
		private RogueCommonPendingAction action_;
	}
}
